<?php

/**
 * MyProjectNameHere <http://www.example.com>
 * Controller Class
 *
 * It is recommended to extend Controller classes from WWW_Factory in order to 
 * provide various useful functions and API access for the Controller.
 *
 * @package    Factory
 * @author     DeveloperNameHere <email@example.com>
 * @copyright  Copyright (c) 2012, ProjectOwnerNameHere
 * @license    Unrestricted
 * @tutorial   /doc/pages/guide_mvc.htm
 * @since      1.0.0
 * @version    1.0.0
 */

class WWW_controller_doctor extends WWW_Factory {
	
	/**
	 * Simple example call to get data
	 *
	 * Please note that only public methods can be called through API, protected 
	 * and private methods remain hidden. This method would be accessible over API 
	 * with 'www-command=example-get' call.
	 *
	 * @param array $input input data sent to controller
	 * @input [key] This key is one of the accepted input values
	 * @return array
	 * @output [key] This is an output value that might exist in the output array
	 * @response [500] Data returned
	 */
	public function create_category($data){
		print_r($query);exit;
		$data=$this->getModel('doctor');
		$created_info = $data->create_category($data);
		return $this->resultTrue('Create Category',$created_info);	
	}
	public function update_category(){		
		$data=$this->getModel('doctor');
		$updated_info = $data->update_category();		
		return $this->resultTrue('Update Category',$updated_info);		
	}
	public function all_categories(){		
		$data=$this->getModel('doctor');
		$allCategories_info = $data->all_categories();	
		return $this->resultTrue('All Categories',$allCategories_info);		
	}
	public function get_category(){
		$data=$this->getModel('doctor');
		$category_info = $data->get_category();	
		return $this->resultTrue('Category Info',$category_info);		
	}
	public function create(){
		//return $_POST;
		$data=$this->getModel('doctor');
		$created_info = $data->create();
		return $this->resultTrue('Created Doctor Info',$created_info);	
	}
	public function update(){		
		$data=$this->getModel('doctor');
		$updated_info = $data->update();		
		return $this->resultTrue('Update Doctor Info',$updated_info);		
	}
	public function all(){		
		$data=$this->getModel('doctor');
		$doctors_info = $data->all();	
		return $this->resultTrue('All Doctors',$doctors_info);		
	}
	public function get(){
		$data=$this->getModel('doctor');
		$doctor_info = $data->get();	
		return $this->resultTrue('Doctor Info',$doctor_info);		
	}
	public function get_category_doctors(){
		$data=$this->getModel('doctor');
		$doctors_info = $data->get_category_doctors();	
		return $this->resultTrue('Doctor Info',$doctors_info);
	}
	public function disabled_doctor(){
		$data=$this->getModel('doctor');
		$disabled_info = $data->disabled_doctor();	
		return $this->resultTrue('Doctor Info',$disabled_info);
	}
	public function delete_doctor(){		
		$data=$this->getModel('doctor');
		$deleted_info = $data->delete_doctor();	
		return $this->resultTrue('Delete Doctor Info',$deleted_info);
	}
	
}
	
?>